package com.jxd.ordersys.dao;

import com.jxd.ordersys.model.Dept;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeptMapper {
    /**
     * 获取所有部门信息
     * @return
     */
    List<Dept> deptList();

    int addDept(Dept dept);

    int editDept(Dept dept);

    int delDept(List<Integer> deptIds);

    List<Dept> getDeptByPage(@Param("offset") Integer offset ,@Param("limit") Integer limit,@Param("deptName") String deptName);

    int getDeptCount(@Param("deptName") String deptName);

    Dept getDeptById(Integer deptId);
}
